package com.sky.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 读取 application.yml 中，阿里云OSS的配置
 */
@Component
@Data
@ConfigurationProperties(prefix = "sky.aliyun.oss")
public class AliOssProperties {
    // OSS域名
    private String endpoint;
    // OSS accessKeyId
    private String accessKeyId;
    // OSS accessKeySecret
    private String accessKeySecret;
    // OSS bucket名
    private String bucketName;
    // 本项目名称
    private String projectName;
}
